<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Msg extends MY_Controller {
    
	public function __construct(){
		parent::__construct();
	}

	function del(){
	    $this->check_ajax_login();
	    if(empty($this->p['id'])) die;
	    $id = $this->p['id'];
	    $this->cm->delete($this->tbl->msg,array('id'=>$id));
	    ejd('','','reload');
	}
    
	function is_r_do(){
	    $this->check_ajax_login();
	    if(empty($this->p['id'])) die;
	    $id = $this->p['id'];
	    $this->cm->update($this->tbl->msg,array('is_r'=>1),array('id'=>$id));
	    ejd('','','reload');
	}
    
}

